import request from '@/utils/request'

//货物入仓列表
export function ListWarehouseIn(data,params) {
  return request({
    url: `/storage/hwrc/list`,
    method: 'post',
    data: data,
    params:params
  })
}


//货物入仓批量审核
export function warehouseInAudit(data) {
    return request({
        url: '/storage/hwrc/audit',
        method: 'post',
        data: data
    })
}
//货物入仓->详细->驳回
export function warehouseInReject(data) {
    return request({
        url: `/storage/hwrc/reject/${data.dzid}`,
        method: 'post',
        data: data
    })
}



//货物入仓现场入仓添加
export function warehouseInAdd(data) {
    return request({
        url: '/storage/hwrc/add',
        method: 'post',
        data: data
    })
}



//货物入仓仓位
export function selectPosition2(data) {
    return request({
        url: `/storage/category/selectPosition2/${data.spckid}`,
        method: 'post',
        data: data
    })
}

//货物入仓->详细->历史记录
export function warehouseInHistoryRecord(data) {
    return request({
        url: `/storage/hwrc/historyRecord/${data.spdzid}`,
        method: 'post',
        data: data
    })
}

//仓储服务->普通货物操作->货物入仓->【现场入仓->选择仓位】/【详细->新增货物->增加行->选择仓位】
export function warehouseInSelectPosition(data) {
    return request({
        url: `/storage/category/selectPosition/${data.spckid}`,
        method: 'post',
        data: data
    })
}

//仓储服务->普通货物操作->货物入仓->纱支、工艺、工序、用途、产地、漂染性
export function warehouseInDetailsDropDown1(data) {
    return request({
        url: `/storage/category/detailsDropDown1`,
        method: 'post',
        data: data
    })
}


//货物入仓->详细->新增货物->添加
export function warehouseInNewCargo(data) {
    return request({
      url: '/storage/hwrc/newCargo',
      method: 'post',
      data: data
    })
}

//货物入仓->详细
export function getWarehouseInDetails(data) {
    return request({
      url: `/storage/hwrc/detail/${data.dzid}/${data.shztn}`,
      method: 'post',
      data: data
    })
}

//货物入仓修改信息
export function warehouseInModifyInfo(data) {
    return request({
        url: '/storage/hwrc/modifyInfo',
        method: 'post',
        data: data
    })
}


//货物入仓->详细->修改->修改
export function warehouseInfModify(data) {
    return request({
      url: '/storage/hwrc/modify',
      method: 'post',
      data: data
    })
}



//货物入仓->详细->删除
export function warehouseInDelete(data) {
    return request({
      url: '/storage/hwrc/del',
      method: 'post',
      data: data
    })
}

//仓储服务->普通货物操作->货物入仓->现场入仓->选择客户
export function selectCustomer(data, params) {
    return request({
      url: '/storage/shop/selectCustomer',
      method: 'post',
      data: data,
      params:params,
    })
}

//货物入仓->打印
export function warehouseInPrint(data) {
    return request({
      url: `/storage/hwrc/print/${data.dzid}`,
      method: 'post',
      data: data
    })
}

//货物入仓总览
export function getWarehouseInOverview(data, params) {
    return request({
      url: '/storage/hwrc/overview',
      method: 'post',
      data: data,
      params:params
    })
}

//货物入仓总览已删除
export function warehouseInOverviewRecordDeleted(data, params) {
    return request({
      url: '/storage/hwrc/recordDeleted',
      method: 'post',
      data: data,
      params:params
    })
}

//仓储服务->【普通货物操作->【货物入仓总览】/【货物出仓总览】/【货权转移总览】】/【仓库整租->费用结算】->仓库
export function warehouseInRecycleBin(data,params) {
    return request({
      url: '/storage/hwrc/recycleBin',
      method: 'post',
      data: data,
      params:params
    })
}

//调试货物入仓->回收站->详细#权限标识：zhcloud:hwrc:detail
export function getWarehouseInRecycleBinDetail(data) {
    return request({
      url: `/storage/hwrc/recycleBinDetail/${data.spdzid}`,
      method: 'post',
      data: data
    })
}

//货物入仓->回收站->还原#权限标识：zhcloud:hwrc:modify
export function warehouseInRecycleBinRestore(data) {
    return request({
      url: `/storage/hwrc/reduction/${data.spdzld}`,
      method: 'post',
      data: data
    })
}

//仓储服务->普通货物操作->货物入仓->详细->修改->新仓位/仓位
export function selectPosition(data) {
    return request({
        url: `/storage/category/position/${data.spckid}`,
        method: 'post',
        data: data,
    })
}



















  








